import { Component, OnInit,AfterViewInit,AfterViewChecked } from '@angular/core';

@Component({
  selector: 'app-cview',
  templateUrl: './cview.component.html',
  styleUrls: ['./cview.component.css']
})
export class CviewComponent implements OnInit,AfterViewInit,AfterViewChecked {

  constructor() { }

  ngOnInit() {
  }

  greeting(name:string) {
    console.log("hello--" + name);
  }

  ngAfterViewInit() {
    console.log("子组件的视图初始化完毕");
  }

  ngAfterViewChecked() {
    console.log("子组件的视图---跟新检测完毕");
  }

}
